package framework.mashup;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;

public class JsxGraphMain extends Application {
	public static void main(String[] arg) {
		Application.launch(arg);
	}
	
	@Override
	public void start(Stage primaryStage) throws Exception {
		AnchorPane root = new AnchorPane();
		Scene scene = new Scene(root, 400 , 300);
		primaryStage.setScene(scene);
		primaryStage.show();
		JsxGraph graph = new JsxGraph();
		root.getChildren().add(graph);
		root.prefWidthProperty().bind(scene.widthProperty());
		root.prefHeightProperty().bind(scene.heightProperty());
		graph.prefWidthProperty().bind(root.prefWidthProperty());
		graph.prefHeightProperty().bind(root.heightProperty());
	}

}
